<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<%@ include file="/commons/commonEdit.jsp"%>
<%@ include file="/commons/validation.jsp"%>
<%@ include file="/commons/dateTime.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="JavaScript" type="text/javascript" src="${ctx}/scripts/ajaxException.js"></script>
<script language="JavaScript" src="${ctx}/scripts/common/prototype.js"></script>
<script type="text/javascript" src="${ctx}/scripts/div/common.js"></script>
<script type="text/javascript">
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>整改项目-高级查询</title>
<script type="text/javascript">
	function submitForm(){
		var isPass=$('serachForm').fireEvent("onSubmit");
		if(isPass){
			var param = Form.serialize('serachForm');

			findFrame('perfectItemRequisitionList').parent.searchPerfectItemRequisition(param);

			windowClose();
		}
	}

	function openSelectHouse(){
		var ownerUrl = PROJECT_NAME_PATH_MYCE + "/customer_chooseSingleHouseAction.do?method=chooseBuildingMain";
		ownerUrl += "&parentFrameId=SearchPage";
		top.windowOpen(ownerUrl , "chooseBuildFrm", "选择房间",500,800);
	}

	function setHouseInfo(houseId,houseNum){	//设置房号

		$('houseNumber').value = houseNum;
	}
</script>
</head>
<body>
<form name="serachForm" id="searchForm" class="required-validate" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="window_head_outBg"><table border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><img src="${ctx}/images/ico_Advance.gif" width="16" height="16" align="absmiddle"> <span class="window_head_intext">高级查询</span></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td class="aux_header_line_1"></td>
  </tr>
  <tr>
    <td class="aux_header_line_2"></td>
  </tr>
  <tr>
    <td class="content"><table width="100%" ""border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top" class="aux_outtable_color"><table width="100%" border="0" cellpadding="0" cellspacing="1" class="aux_intable_color">


          <tr>
            <td class="aux_intable_td1">楼栋：</td>
            <td class="aux_intable_td2">
            <pms:unitedSelect
              		name="buildingId"
              		id="buildingId"
              		optionLabel="name"
              		optionValue="keyword"
              		selectText="请选择..."
              		dataList="${buildingList }">
           	</pms:unitedSelect>
            </td>
            <td class="aux_intable_td1">业主姓名：</td>
            <td class="aux_intable_td2"><input name="ownerName" id="ownerName" type="text" class="inputtext" value="" size="16"></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">房号：</td>
            <td class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input readonly="readonly" name="houseNumber" id="houseNumber" type="text" class="inputtext" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><a href="#"  onClick="javascript:openSelectHouse();" onFocus="this.blur()"><img src="${ctx}/images/ico_houesno.GIF" alt="请点选查找房号" border="0"></a></td>
              </tr>
            </table></td>
            <td class="aux_intable_td1"></td>
            <td class="aux_intable_td2"></td>
          </tr>
		  <tr>
            <td valign="top" class="aux_intable_td1">申报项目类型：</td>
            <td colspan="3" class="aux_intable_td2">
            <pms:unitedSelect
              		name="perfectItemTypeConfigId"
              		id="perfectItemTypeConfigId"
              		optionLabel="perfectItemTypeName"
              		optionValue="keyword"
              		selectText="请选择..."
              		dataList="${perfectItemTypeList }">
           	</pms:unitedSelect></td>
            </tr>
          <tr>
            <td valign="top" class="aux_intable_td1">问题描述：</td>
            <td colspan="3" class="aux_intable_td2"><textarea name="description" id="description" cols="26" rows="3" class="textareatext"></textarea></td>
            </tr>
          <tr>
            <td class="aux_intable_td1">申报日期：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="perfectRequisitionDate1" id="perfectRequisitionDate1" type="text" class="inputtext validate-date-yyyy-mm-dd" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><img id="perfectRequisitionDate1Img" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
                <td width="4">&nbsp;</td>
                <td><input name="perfectRequisitionDate2" id="perfectRequisitionDate2" type="text" class="inputtext validate-date-yyyy-mm-dd" size="16"></td>
				<td width="4">&nbsp;</td>
                <td><img id="perfectRequisitionDate2Img" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
              </tr>
            </table></td>
            </tr>
          <tr>
            <td class="aux_intable_td1">完工日期：</td>
            <td colspan="3" class="aux_intable_td2"><table border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><input name="completeDate1" id="completeDate1" type="text" class="inputtext validate-date-yyyy-mm-dd" size="16"></td>
                <td width="4">&nbsp;</td>
                <td><img id="completeDate1Img" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
                <td width="4">&nbsp;</td>
                <td><input name="completeDate2" id="completeDate2" type="text" class="inputtext validate-date-yyyy-mm-dd" size="16"></td>
				<td width="4">&nbsp;</td>
                <td><img id="completeDate2Img" src="${ctx}/images/ico_clock.gif" alt="请点选查找日期" border="0"></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td class="aux_intable_td1">完工状态：</td>
            <td colspan="3" class="aux_intable_td2">
            <select name="completeYn" id="completeYn" style="width:110px;">
              <option selected="selected" value="">请选择...</option>
              <option value="1">已完工</option>
              <option value="0">未完工</option>
            </select></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td class="window_footer"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_21"></td>
              <td class="buttonOffMiddle" id="btn1_22" onClick="javascript:submitForm();" onMouseOver="btn_change_over(2)" onMouseOut="btn_change_out(2)" onblur="btn_change(2)"><img src="${ctx}/images/ico_ok.gif" alt="" width="14" height="14" border="0" align="absbottom"> 确 定</td>
              <td class="buttonOffRight" id="btn1_23"></td>
            </tr>
        </table></td>
        <td class="btn_between_space"></td>
        <td><table border="0" cellpadding="0" cellspacing="0">
            <tr>
              <td class="buttonOffLeft" id="btn1_31"></td>
              <td class="buttonOffMiddle" id="btn1_32" onClick="javascript:windowClose();" onMouseOver="btn_change_over(3)" onMouseOut="btn_change_out(3)" onblur="btn_change(3)"><img src="${ctx}/images/ico_cancel.gif" alt="" width="14" height="14" border="0" align="absbottom"> 取 消</td>
              <td class="buttonOffRight" id="btn1_33"></td>
            </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
<script type="text/javascript">
     Calendar.setup(
      {
       inputField : "completeDate1", // ID of the input field
       ifFormat : "%Y-%m-%d", // the date format
       button : "completeDate1Img", // ID of the button
      // align          :    "Tl",           // alignment (defaults to "Bl")
 		singleClick    :    true
      }
      );
     Calendar.setup(
    	      {
    	       inputField : "completeDate2", // ID of the input field
    	       ifFormat : "%Y-%m-%d", // the date format
    	       button : "completeDate2Img", // ID of the button
    	      // align          :    "Tl",           // alignment (defaults to "Bl")
    	 		singleClick    :    true
    	      }
    	      );
     Calendar.setup(
    	      {
    	       inputField : "perfectRequisitionDate1", // ID of the input field
    	       ifFormat : "%Y-%m-%d", // the date format
    	       button : "perfectRequisitionDate1Img", // ID of the button
    	      // align          :    "Tl",           // alignment (defaults to "Bl")
    	 		singleClick    :    true
    	      }
    	      );
     Calendar.setup(
    	      {
    	       inputField : "perfectRequisitionDate2", // ID of the input field
    	       ifFormat : "%Y-%m-%d", // the date format
    	       button : "perfectRequisitionDate2Img", // ID of the button
    	      // align          :    "Tl",           // alignment (defaults to "Bl")
    	 		singleClick    :    true
    	      }
    	      );
</script>
</body>
</html>